import $ from '../common';
Page({
  data: {
    titleHeight: $.gData().titleHeight,
    statuHeight: $.gData().statuHeight,
    noimg:$.noImage
  },
  onLoad(e) {
    const{lesson_uuid='',student_uuid=''}=e
    this.setData({
      zonecode: wx.getStorageSync('addresscode') || '',
      lesson_uuid,
      student_uuid
    })
    this.getinfo()
  },
  onShow() {

  },
  onReachBottom() {

  },
  getinfo(){
    $.get('/lesson/detail',{
      zonecode:this.data.zonecode,
      lesson_uuid:this.data.lesson_uuid,
      student_uuid:this.data.student_uuid
    },res=>{
      console.log(res);
      this.setData({
        info:res
      })
    })
  },
  backHome(){
    $.navigateBack()
  }
})